package demo03;

public class exercise21 {
	public static void main(String[] args) {
		long sum = 0;
		long num =1;
		for(int i =1;i<=20;i++){
			num=num*i;
			sum+=num;
		}
		System.out.println(sum);
	}
}
